package cn.qdu.model;

public class Topic {
    private String id;
    private String name;
    private int postCount;  // 相关动态数
    private int hotScore;   // 热度分数

    // 构造方法
    public Topic(String id, String name, int postCount, int hotScore) {
        this.id = id;
        this.name = name;
        this.postCount = postCount;
        this.hotScore = hotScore;
    }

    // Getter 和 Setter
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPostCount() {
        return postCount;
    }

    public void setPostCount(int postCount) {
        this.postCount = postCount;
    }

    public int getHotScore() {
        return hotScore;
    }

    public void setHotScore(int hotScore) {
        this.hotScore = hotScore;
    }
}